package org.biubiu0002.baiblog.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.biubiu0002.baiblog.core.model.entity.CommentRecordEntity;

import java.util.List;

/**
 * 评论记录表
 * 
 * @author biubiu0002
 * @email 1007918011@qq.com
 * @date 2022-05-06 00:50:37
 */
@Mapper
public interface CommentRecordDao extends BaseMapper<CommentRecordEntity> {
    /**
     * 逻辑删除评论
     * @param commentIds 评论集合
     */
    void deleteByIds(@Param("commentIds") List<String> commentIds);

    /**
     * 根据
     * @param commentIdList commentIdList
     * @return entities
     */
    List<CommentRecordEntity> selectByCommentedId(@Param("commentIdList") List<String> commentIdList);
}
